<?php

Solar::loadClass('Domain51_Controller_PageType', true);

class Domain51_PageType_Html_Controller extends Domain51_Controller_PageType
{
    function dispatch($spec)
    {
        $this->_view->content = parent::dispatch($spec);
        return $this->_render();
    }
    
    private function _render()
    {
        if (isset($this->_sub_controller->title)) {
            $this->_view->title = $this->_sub_controller->title;
        }
        
        return $this->_view->fetch('index.php');
    }
}

?>